using System.ComponentModel;

namespace ToyStore.Domain.Store
{
	/// <summary>
	/// Produkt na zamówieniu.
	/// Posiada przepisaną z produktu cenę (aktualną na dzień kupna), rabat itp.
	/// </summary>
	public class OrderedProduct : BaseEntity
	{
		/// <summary>
		/// Produkt.
		/// </summary>
		[DisplayName("Produkt")]
		public virtual Product Product { get; set; }
		
		/// <summary>
		/// Zamówienie.
		/// </summary>
		[DisplayName("Zamówienie")]
		public virtual Order Order { get; set; }
		
		/// <summary>
		/// Cena.
		/// </summary>
		[DisplayName("Cena")]
		public virtual decimal PriceNetto { get; set; }

		/// <summary>
		/// Podatek.
		/// </summary>
		[DisplayName("Podatek")]
		public virtual Vat Vat { get; set; }

		/// <summary>
		/// Ilość.
		/// </summary>
		[DisplayName("Ilość")]
		public virtual int Amount { get; set; }
		
		/// <summary>
		/// Cena całkowita (netto).
		/// </summary>
		[DisplayName("Cena całkowita (netto)")]
		public virtual decimal SumPriceNetto { get; set; }

		/// <summary>
		/// Cena całkowita (brutto).
		/// </summary>
		[DisplayName("Cena całkowita (brutto)")]
		public virtual decimal SumPriceBrutto { get; set; }
	}
}
